package com.dnjn.happiness.biz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.biz.domain.UserContribution;
import com.dnjn.happiness.biz.mapper.UserContributionMapper;
import com.dnjn.happiness.biz.service.IUserContributionService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 贡献记录Service业务层处理
 *
 * @author happiness
 * @date 2023-10-19
 */
@Service
public class UserContributionServiceImpl extends ServiceImpl<UserContributionMapper, UserContribution> implements IUserContributionService {


    @Override
    public Page<UserContribution> getPage(Page<UserContribution> page, Map<String, Object> map) {
        return baseMapper.getPage(page, map);
    }

    @Override
    public List<UserContribution> getContributionList(Long userId) {
        return baseMapper.getContributionList(userId);
    }

    @Override
    public Double getContributionEvery(Long id) {

        return baseMapper.getContributionEvery(id);
    }
}
